package mediator;

public class Client {
    public static void main(String[] args) {
        Mediator mediator = new ConcreteMediator();
        //先添加几个店铺
        mediator.add(new ShopA("南城香"));
        mediator.add(new ShopB("老杨羊汤"));

        System.out.println("在南城香点“一碗馄饨”");
        mediator.notice("南城香","一碗馄饨");
        System.out.println("-----------------------------------");

        System.out.println("在老杨羊汤点“一碗羊杂汤”");
        mediator.notice("老杨羊汤","一碗羊杂汤");

        System.out.println("-----------------------------------");
        System.out.println("在绝味鸭脖点“一斤鸭脖”");
        mediator.notice("绝味鸭脖","一斤鸭脖");
    }
}
